POV-Ray : Newsgroups : povray.binaries.images : Isosurface puzzle : Re: Isosurface puzzle Server Time
1 Aug 2024 20:10:56 EDT (-0400)
  Re: Isosurface puzzle  
From: Thomas de Groot
Date: 28 Feb 2008 07:26:06
Message: <47c6a85e$1@news.povray.org>
"Nicolas Alvarez" <nic### [at] gmailisthebestcom> schreef in bericht 
news:47c6a742$1@news.povray.org...
>
> Just a minor hint: It would be much easier to debug the basic shape if you 
> remove any kind of noise or turbulence.

Sorry about that! You are right. To simplify, the isosurface should read:

isosurface {
function {
            max(f_basic(x, 0, z),
              -f_hole(y,x*8,z*8),
              -f_hole(y-10,x*8,z*8)
              #if (Flutes)
                #while (Angle<365)
                  ,
                  #if (Fbase)
                    -max(f_flute(x*cos(radians(Angle)) - 
z*sin(radians(Angle)), 0, x*sin(radians(Angle)) + 
z*cos(radians(Angle))), -f_flutebase(x*cos(radians(Angle)) - 
z*sin(radians(Angle)), y, x*sin(radians(Angle)) + z*cos(radians(Angle))))
                  #else
                    #if (Ftop)
                      -max(f_flute(x*cos(radians(Angle)) - 
z*sin(radians(Angle)), 0, x*sin(radians(Angle)) + z*cos(radians(Angle))), 
f_flutetop(x*cos(radians(Angle)) - z*sin(radians(Angle)), y, 
x*sin(radians(Angle)) + z*cos(radians(Angle)))),
                      -(f_flutend(x*cos(radians(Angle)) - 
z*sin(radians(Angle)), y, x*sin(radians(Angle)) + z*cos(radians(Angle))))
                    #else
                      -(f_flute(x*cos(radians(Angle)) - 
z*sin(radians(Angle)), 0, x*sin(radians(Angle)) + z*cos(radians(Angle))))
                    #end
                  #end
                  #local Angle = Angle+15;
                #end //of Angle
              #end //of flutes
            ) //end of max()
         } //end of function
  max_gradient 20.0
  contained_by {box {<-1.1, 0, -1.1>, < 1.1, 1, 1.1>}}
  accuracy 1e-3
}


Thomas


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.